Skip to content

fix(check-workflows): mock action-artifacts capability probe endpoints#2450

Closed
matthiasL-scality wants to merge 1 commit into
development/2.15from
fix/action-artifacts-capability-probe-mock
Closed

fix(check-workflows): mock action-artifacts capability probe endpoints#2450
matthiasL-scality wants to merge 1 commit into
development/2.15from
fix/action-artifacts-capability-probe-mock

Conversation

@matthiasL-scality

@matthiasL-scality matthiasL-scality commented Jun 26, 2026

Copy link
Copy Markdown

Context

action-artifacts@4.3.0 added a capability probe that fires a GET to `/presign-upload/capability-probe/probe.bin` and `/presign-upload-part/capability-probe/probe.bin` before every upload, to detect presigned/multipart upload support. These endpoints are not yet deployed (pending PTFE-3137 and PTFE-3219).

When `v4` was pointed at 4.3.0, the `check-workflows` CI broke with `ERR_NOCK_NO_MATCH` because nock had no interceptor for the probe requests. The tag was rolled back as a temporary fix.

Changes

Add `presignUpload` and `presignUploadPart` endpoints to the `Mockapi` definition in `archive-artifacts.spec.ts`, and mock them with 404 in `commonMockApi()`. A 404 response makes the action fall back to the standard upload path, keeping existing tests valid.

How to validate

Once PTFE-3137 and PTFE-3219 are merged and `action-artifacts` is re-released with the probe:

  1. Bump the `v4` tag to the new release
  2. Re-run the CI on this PR — it should pass (the probe returns 404 in tests, action falls back to basic upload)

Comment thread tests/workflows/archive-artifacts.spec.ts Outdated
action-artifacts@4.3.0+ probes /presign-upload/ and /presign-upload-part/
before every upload to detect presigned/multipart capability. Without
these nock intercepts the tests throw ERR_NOCK_NO_MATCH.

Reply 404 so the action falls back to the standard upload path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@matthiasL-scality matthiasL-scality force-pushed the fix/action-artifacts-capability-probe-mock branch from 8905316 to 5231b5a Compare June 29, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant